package com.xal.pojo.entiey;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


/**
* 
* @TableName student
*/
@Data
@NoArgsConstructor

@ToString
@ApiModel(value = "学生接口")
public class Student {


    /**
    * 学生d
    */
      @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "学生id")
    private Integer sid;
    /**
    * 学生姓名
    */

    @ApiModelProperty(value = "学生姓名")
    private String sname;
    /**
    * 学生年龄
    */

    @ApiModelProperty(value = "学生年龄")
    private Integer sage;
    /**
    * 班级
    */

    @ApiModelProperty(value = "班级")
    private Integer cid;

    @TableField(exist = false)
    @ApiModelProperty(value = "班级名")
    private School school;



    public Student(String sname, Integer sage, Integer cid) {
        this.sname = sname;
        this.sage = sage;
        this.cid = cid;
    }


}
